package com.zhxh.nzpos.query;

import java.util.ArrayList;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ListView;

import com.zhxh.nzpos.BaseActivity;
import com.zhxh.nzpos.R;
import com.zhxh.nzpos.buyin.ConfirmItem;
import com.zhxh.nzpos.buyin.ConfirmListAdapter;
import com.zhxh.nzpos.utils.ViewUtil;

/**
 * 统计查询--订购查询
 * 
 * @author wangzt
 *
 */
public class SupplierQueryActivity extends BaseActivity {

	private ArrayList<ConfirmItem> confirmItems;
	private ConfirmListAdapter listAdapter;
	
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_query_supplier);
        initViews();
    }
	
	private void initViews() {
		
		ListView listView = (ListView) findViewById(R.id.buyin_query_listview);
		confirmItems = new ArrayList<ConfirmItem>();
		
		final EditText goodsCode = (EditText) findViewById(R.id.buyin_goods_code_et);
		
		        


		
		ImageView searchBtn = (ImageView) findViewById(R.id.buyin_search_btn);
		searchBtn.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				ViewUtil.makeToast(getApplicationContext(), "没有供货商信息！");
			}
		});
		
//		listAdapter = new ConfirmListAdapter(getLayoutInflater(), confirmItems);
		listView.setAdapter(listAdapter);
		
		ImageView cancelBtn = (ImageView) findViewById(R.id.buyin_query_close_btn);
		cancelBtn.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				finish();
			}
		});
	}
}
